<h2> Add Member: </h2>
<form name="frmDoBrand" id="frmDoBrand" method="POST" action="" enctype="multipart/form-data" onSubmit="return checkFrmAddBrand();">
<input type="hidden" name="action" id="action" value="add">
<table border="1" width="100%" cellpadding="2" cellspacing="1" bgcolor="#F0F0F0">
	<tr>
  	<td align="right" style="vertical-align:top; width:120px;">Info *</td>
    <td align="left" style="vertical-align:top">
    	<input type="text" id="bInfo" name="bInfo" size="100" value="<{if $brandInfo}><{$brandInfo.info}><{/if}>"/>
    </td>
  </tr>
  <tr>
  	<td align="right" style="vertical-align:top; width:120px;">Speak *</td>
    <td align="left" style="vertical-align:top">
    	<textarea rows="3" id="bSpead" name="bSpeak" style="width: 600px;"><{if $brandInfo}><{$brandInfo.speak}><{/if}></textarea>
    </td>
  </tr>
  <tr>
  	<td align="right" style="vertical-align:top; width:120px;">Image</td>
    <td align="left" style="vertical-align:top">
    	<input type="file" id="bImage" name="bImage" readonly/>
    </td>
  </tr>
  <tr>
  	<td align="right" style="vertical-align:top">Status:</td>
    <td align="left" style="vertical-align:top">
    	<select name="status" id="status">
      	<option value="1">&nbsp;&nbsp;&nbsp;Yes</option>
        <option value="0">&nbsp;&nbsp;&nbsp;No</option>
      </select>
    </td>
  </tr>
  
  <tr>
  	<td align="right" style="vertical-align:top">&nbsp;</td>
    <td align="left" style="vertical-align:top">
    	<input type="submit" name="btnSubmit" id="btnSubmit" value="Save" />
    </td>
  </tr>
</table>
</form>
<div>
	<a href="<{$smarty.const.APPLICATION_URL}>admin/brand">Back List Brands</a>
</div>
<script type="text/javascript" src="<{$smarty.const.APPLICATION_URL}>public/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">        
	function checkFrmAddBrand(){
            if($('#bInfo').val().replace(/^\s+|\s+$/g,'') == ''){
                alert("Info, value can not be empty!");
                return false;
            }
            if($('#bSpeak').val().replace(/^\s+|\s+$/g,'') == ''){
                alert("Speak, value can not be empty!");
                return false;
            }
            $('#frmDoBrand').submit();
        }
</script>